@echo off
echo Starting WVP GB28181 Video Platform in TEST mode...

REM Java 8 兼容的测试JVM参数
set JAVA_OPTS=-Xms128m -Xmx512m -XX:PermSize=64m -XX:MaxPermSize=128m
set JAVA_OPTS=%JAVA_OPTS% -XX:+UseParallelGC
set JAVA_OPTS=%JAVA_OPTS% -Djava.awt.headless=true
set JAVA_OPTS=%JAVA_OPTS% -Dfile.encoding=UTF-8
set JAVA_OPTS=%JAVA_OPTS% -Duser.timezone=Asia/Shanghai
set JAVA_OPTS=%JAVA_OPTS% -Djava.net.preferIPv4Stack=true

echo Using test configuration with minimal dependencies...
echo JVM Options: %JAVA_OPTS%

mvn spring-boot:run -Dspring-boot.run.jvmArguments="%JAVA_OPTS%" -Dspring.profiles.active=test

pause
